package com.ymatou.iapi.productmanager.service;

import org.json.JSONObject;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;
import com.ymttest.utils.MapUtil;

public class GetAllCommonBrandsCall extends YmatouAutoTestCall{

	private static String opurl ="/api/Brand/GetAllCommonBrands";
	
	public GetAllCommonBrandsCall() {
		super(EnvSetup.getSystemUrl("productmanager"),opurl,"GET","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Content-Type", "application/json");
	}

	
	public JSONObject call(String date){
		if (date!=null&& !date.equals("")){
			return this.callAndGetReturnData(MapUtil.hashMap("SelectDate",date));
		}else{
			return this.callAndGetReturnData();
		}
		
	}
	
	public static void main(String[] args) {
		new GetAllCommonBrandsCall().callAndGetReturnData();
	}
	
	
	
	
	
	
	

	
	
}
